int main() {
	char a[100] = "apple";
	char b[100] = "banana";
	char t[100];

	strcpy(t, a);   // t=a; wrong
	strcpy(a, b);   //
	strcpy(b, t);
	puts(a);
	puts(b);

	memset(t, 0, sizeof(t));
	strcpy(t, a);
	strcat(t, " and ");
	strcat(t, b);
	puts(t);

}
